class Priority_queue():
    priority_queue = []

    def __init__(self):
        priority_queue = []

    def push(self, x):
        self.priority_queue.append(x)
        self.priority_queue.sort()

    def pop(self):
        x = self.priority_queue[0]
        del self.priority_queue[0];
        return x